package com.example.hssmgs.admin;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.hssmgs.R;
import com.example.hssmgs.Student.Student_login;
import com.example.hssmgs.Student.new_info;
import com.example.hssmgs.Teacher.Teacher_look_stu;

public class Admin_login extends Activity {
    Button show_stu_msg;
    Button change_stu_msg;
    Button permission_operation;
    Button go_back_admin;
    Button change_tch_msg;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.admin_login);

        initView();

        show_stu_msg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= getIntent();
                intent.setClass(Admin_login.this, Teacher_look_stu.class);
                startActivity(intent);
            }
        });

        change_stu_msg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= getIntent();
                intent.setClass(Admin_login.this, Admin_change.class);
                startActivity(intent);
            }
        });

        change_tch_msg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= getIntent();
                intent.setClass(Admin_login.this, Admin_change_tch.class);
                startActivity(intent);
            }
        });

        permission_operation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent= getIntent();
                intent.setClass(Admin_login.this, Admin_oper.class);
                startActivity(intent);
            }
        });

        go_back_admin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    private void initView() {
        show_stu_msg=findViewById(R.id.show_stu_msg);
        change_stu_msg=findViewById(R.id.change_stu_msg);
        permission_operation=findViewById(R.id.permission_operation);
        go_back_admin=findViewById(R.id.go_back_admin);
        change_tch_msg=findViewById(R.id.change_tch_msg);
    }
}